import request from '@/utils/request'

// 查询加油列表
export function listGasoline(query) {
  return request({
    url: '/car/gasoline/list',
    method: 'get',
    params: query
  })
}

// 查询加油详细
export function getGasoline(gasolineId) {
  return request({
    url: '/car/gasoline/' + gasolineId,
    method: 'get'
  })
}

// 新增加油
export function addGasoline(data) {
  return request({
    url: '/car/gasoline',
    method: 'post',
    data: data
  })
}

// 修改加油
export function updateGasoline(data) {
  return request({
    url: '/car/gasoline',
    method: 'put',
    data: data
  })
}

// 删除加油
export function delGasoline(gasolineId) {
  return request({
    url: '/car/gasoline/' + gasolineId,
    method: 'delete'
  })
}
